package org.jeecg.modules.inspection.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.inspection.entity.InspectionLine;
import org.jeecg.modules.inspection.entity.InspectionLineArea;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @Description: 巡检路线
 * @Author: jeecg-boot
 * @Date:   2019-09-20
 * @Version: V1.0
 */
@Repository
public interface InspectionLineMapper extends BaseMapper<InspectionLine> {
    List<InspectionLineArea> selectLineArea(@Param("lineId") String lineId);

    List<InspectionLine> selectLineByUser(@Param("userId")String userId,@Param("type")Integer type);

    @Select("select name from set_inspection_line where  id = #{lineId} and del_flag = '0'")
    String selectLineName(@Param("lineId")String lineId);

    List<InspectionLine> exportList(@Param("line") InspectionLine inspectionLine, @Param("officeStr") String officeStr);
}
